﻿<script type="text/javascript" src="__PUBLIC__/admin/js/common-1.0.js"></script>
<div class="tabBar cl mb-10">
<!--  <span <if condition="($type eq 2)">class="current"</if>><a href="{:U('Code/regList',array('type'=>2))}" >{$grade[2]}</a></span>-->
<!--  <span <if condition="($type eq 3)">class="current"</if>><a href="{:U('Code/regList',array('type'=>3))}" >{$grade[3]}</a></span>-->
<!--	<span <if condition="($type eq 4)">class="current"</if>><a href="{:U('Code/regList',array('type'=>4))}" >{$grade[4]}</a></span>-->
	<span <if condition="($type eq 6)">class="current"</if>><a href="{:U('Code/regList',array('type'=>6))}" >{$grade[6]}</a></span>
	<span class="r mt-3">共有数据：<strong>{$rows}</strong> 条</span>
</div>
<table id="xctable" class="table table-border table-bordered table-hover table-bg table-sort">
  <thead>
  <tr class="text-c">
	<th width="40">编号</th>
		<th width="80" id="co_code" onClick="tab_sort(this)"><div class="">编码信息</div></th>
	<th width="150" id="co_juid" onClick="tab_sort(this)"><div class="">使用会员</div></th>
	<th width="140" id="co_atime" onClick="tab_sort(this)"><div class="">创建时间</div></th>
	<th width="160" id="co_jtime" onClick="tab_sort(this)"><div class="">使用时间</div></th>
	<th width="80" id="co_state" onClick="tab_sort(this)"><div class="">状态</div></th>
  </tr>
  </thead>
  <volist name="list" id="vo" >
	<tr class="text-c">
	  <td>{$i}</td>
	  <td>{$vo.co_code}</td>
	  <td>{$vo.co_juid}&nbsp;&nbsp;{$vo.co_jname}</td>
	  <td>{$vo.co_atime|date='Y-m-d H:i:s',###}</td>
	  <td>{$vo.co_jtime|date='Y-m-d H:i:s',###}</td>
	  <td><eq name="vo.co_state" value='1'>已使用<else />未使用</eq></td>
	</tr>
  </volist>
</table>
{$page}<!-- 分页-->
<script type="text/javascript">
$(".pagination a").click(function(){
	var page = $(this).data('p');
	ajax_get_table('myfrom1',page);
});
</script>


